<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /* 
         while (i=3) console.log(3--); ->3  i--
         while (i=2) console.log(2--); ->2  i--
         while (i=1) console.log(1--); ->1  i--
         while (i=0)
      */
      let i = 3;
      while (i) {
        console.log(i--);
      }
    </script>
  </body>
</html>
